{* Code JS pour suppression *}
<script type="text/javascript">
<!--
	function delagence(id)
	{
	   if (confirm('{$lang.Confirm_supression_agehnce} ?'))
	   {
	       document.location.href = 'agence.php?delete&token={$token}&agence_id='+id;
        }
	}
// -->
</script>

<div style="float:right;">
	<a href="agence_ajout.php" title="{$lang.Ajouter_agence}">
		<img src="images/add.png" style="border:none; height:20px; width:20px;" alt="+" />
	</a>
</div>
<div style="clear:both;"></div>
<h3>{$lang.Agence}</h3>
<br /><br />

{if $error_msg == true}
<span id="errorh"></span>
<div id="error_msg">
	<div class="{$error_class}" style="width:500px;margin:auto;padding:15px;">
		<img src="{$url_site}images/{$error_image}.png" alt="" style="float:left;padding-right:6px;" /> {$error_message}
	</div>
	<br />
</div>
<script type="text/javascript">
<!--
	//Javascript timeout to hide this message
	setTimeout('Effect.Fade("error_msg");', 3000);
-->
</script>
<br /><br />
{/if}


<table style="width:95%; margin:auto;" cellpadding="1" cellspacing="1">
	<tr>
		<td class="thead"><strong>#</strong></td>
		<td class="thead"><strong>{$lang.Nom}</strong></td>
		<td class="thead"><strong>{$lang.Ville}</strong></td>
		<td class="thead"><strong>{$lang.Email}</strong></td>
		<td class="thead"><strong>{$lang.Action}</strong></td>
	</tr>

{section name=ida loop=$agences}
	<tr>
		<td class="tcontenue"><strong>{$agences[ida].id}</strong></td>
		<td class="tcontenue"><strong>{$agences[ida].nom}</strong></td>
		<td class="tcontenue"><strong>{$agences[ida].ville}</strong></td>
		<td class="tcontenue"><strong>{$agences[ida].email}</strong></td>
		<td class="tcontenue" align="center"><strong>{$agences[ida].action}</strong></td>
	</tr>
{/section}

</table>
<br />
<br />